// -*-c++-*- osgCairo - Copyright (C) 2010 Jeremy Moles
// $Id: ReadFile 62 2010-07-06 20:55:10Z cubicool $

#ifndef OSGCAIRO_READFILE
#define OSGCAIRO_READFILE

#include <osgDB/ReadFile>
#include <osgCairo/Image>

namespace osgCairo {

OSGCAIRO_EXPORT Image* readImageFile(const std::string&, osgDB::ReaderWriter::Options*);

inline Image* readImageFile(const std::string& filename) {
	return readImageFile(filename, osgDB::Registry::instance()->getOptions());
}

}

#endif
